﻿using OA.Models.Root;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Models
{
    /// <summary>
    ///  权限表
    /// </summary>
    public class SysAction:EntityBase
    {
        public int ParentId { get; set; }

        [Required,StringLength(20)]
        public string Title { get; set; }
        [StringLength(20)]
        public string ControllerName { get; set; }
        [StringLength(20)]
        public string ActionName { get; set; }
        [StringLength(20)]
        public string HttpMethod { get; set; }
        [StringLength(20)]
        public string Url { get; set; }
        [StringLength(20)]
        public string Icon { get; set; }

        public bool IsMenu { get; set; }


        public virtual ICollection<SysRole> Roles { get; set; }
    }
}
